package yxy.game.pm2.bean.db.po;

import yxy.apple.db.ResultObjectBuilder;

import java.util.Date;

public class PlayerBeanPo {
    private int uid;// 用户id

    private int serverId;
    private String code;
    private String name;
    private int avatar; // 形象
    private int head; // 头像
    private int headframe; // 头像框
    private int title; // 称号
    private String union; // 联盟code
    private String grading; // 段位
    private int level;
    private int viplevel;
    private long power;// 普通阵型的战力
    private Date updateTime;// 更新时间
    private String guide;// 新手引导信息
    private int town;// 地区id
    private int city;// 城市id
    // XXX 临时用 之后要换到统计服查询
    private Date createTime;// 角色创建时间
    private Date upgradeTime;// 角色升级时间

    public PlayerBeanPo() {
    }

//    public static ResultObjectBuilder<PlayerBeanPo> builder = rs -> {
//        PlayerBeanPo playerBeanPo = new PlayerBeanPo();
//        return playerBeanPo;
//    };

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public int getServerId() {
        return serverId;
    }

    public void setServerId(int serverId) {
        this.serverId = serverId;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAvatar() {
        return avatar;
    }

    public void setAvatar(int avatar) {
        this.avatar = avatar;
    }

    public int getHead() {
        return head;
    }

    public void setHead(int head) {
        this.head = head;
    }

    public int getHeadframe() {
        return headframe;
    }

    public void setHeadframe(int headframe) {
        this.headframe = headframe;
    }

    public int getTitle() {
        return title;
    }

    public void setTitle(int title) {
        this.title = title;
    }

    public String getUnion() {
        return union;
    }

    public void setUnion(String union) {
        this.union = union;
    }

    public String getGrading() {
        return grading;
    }

    public void setGrading(String grading) {
        this.grading = grading;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public int getViplevel() {
        return viplevel;
    }

    public void setViplevel(int viplevel) {
        this.viplevel = viplevel;
    }

    public long getPower() {
        return power;
    }

    public void setPower(long power) {
        this.power = power;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getGuide() {
        return guide;
    }

    public void setGuide(String guide) {
        this.guide = guide;
    }

    public int getTown() {
        return town;
    }

    public void setTown(int town) {
        this.town = town;
    }

    public int getCity() {
        return city;
    }

    public void setCity(int city) {
        this.city = city;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpgradeTime() {
        return upgradeTime;
    }

    public void setUpgradeTime(Date upgradeTime) {
        this.upgradeTime = upgradeTime;
    }
}
